#ifndef __KBOX_UTILITY_H__
#define __KBOX_UTILITY_H__

#include <stddef.h>

#define split 0
#define ENABLE_LOG 1

#if ENABLE_LOG == 1
#define LOG(fmt, ...) fprintf(stdout, "[%s:%d]" fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#else
#define LOG(fmt, ...)
#endif

void *KBoxMalloc(size_t size);
void KBoxFree(void *ptr);

#if split == 1
int KBoxSplitToken(char *msg, char **tokens);
#endif

#endif // __KBOX_UTILITY_H__